﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

namespace Cap.UserMicroservice.Entities
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    public class UserInfo : Entity<Guid>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [MaxLength(50)]
        [Column("UserName", TypeName = "varchar(50)")]
        public string UserName { get; set; }
        
        [MaxLength(128)]
        [Column("UserPassword", TypeName = "varchar(128)")]
        public string UserPassword { get; set; }

        [MaxLength(100)]
        [Column("UserEmail", TypeName = "varchar(100)")]
        public string? UserEmail { get; set; }

        [MaxLength(20)]
        [Column("UserPhone", TypeName = "varchar(20)")]
        public string? UserPhone { get; set; }

        [MaxLength(500)]
        [Column("Description", TypeName = "varchar(500)")]
        public string? Description { get; set; }

        public List<UserDetailInfo> UserDetails { get; set; }

    }
}
